import request from '@/utils/request'

// 查询用户卡券列表
export function listUserCardVoucher(query) {
  return request({
    url: '/system/userCardVoucher/list',
    method: 'get',
    params: query
  })
}

// 查询用户卡券详细
export function getUserCardVoucher(id) {
  return request({
    url: '/system/userCardVoucher/' + id,
    method: 'get'
  })
}

// 新增用户卡券
export function addUserCardVoucher(data) {
  return request({
    url: '/system/userCardVoucher',
    method: 'post',
    data: data
  })
}

// 修改用户卡券
export function updateUserCardVoucher(data) {
  return request({
    url: '/system/userCardVoucher',
    method: 'put',
    data: data
  })
}

// 删除用户卡券
export function delUserCardVoucher(id) {
  return request({
    url: '/system/userCardVoucher/' + id,
    method: 'delete'
  })
}

// 导出用户卡券
export function exportUserCardVoucher(query) {
  return request({
    url: '/system/userCardVoucher/export',
    method: 'get',
    params: query
  })
}